package com.ruoyi.crm.service;

import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;
import com.ruoyi.crm.domain.BusinessOpportunity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IBusinessOpportunityService {
    /**
     * 分页查询商机列表
     */
    TableDataInfo<BusinessOpportunity> selectProspectPageList(BusinessOpportunity businessOpportunity, PageQuery pageQuery);

    /**
     * 根据商机列表ID获取详细信息
     *
     * @param prospectId 商机列表ID
     */
    BusinessOpportunity selectProspectById(Long prospectId);

    /**
     * 新增商机列表
     */
    int insertProspectById(BusinessOpportunity businessOpportunity);

    /**
     * 修改商机列表
     */
    int updateProspectById(BusinessOpportunity businessOpportunity);

    /**
     * 删除商机列表
     */
    int deleteProspectById(Long prospectId);

    /**
     * 商机列表查询
     */
    List<BusinessOpportunity>  selectProspectByList(BusinessOpportunity businessOpportunity);

    /**
     * 文件上传
     */

    BusinessOpportunity upload(MultipartFile file);

}
